package com.bdzl.pojo;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

/**
 * AbstractAdmin entity provides the base persistence definition of the Admin
 * entity. @author MyEclipse Persistence Tools
 * 管理员
 */
@Entity
@Table(name = "admin")
@DynamicUpdate(true)
public  class Admin   {

	// Fields

	private Integer id;
	private String name; //昵称
	private String account;// 登陆账号
	private String password;//登陆密码
	private Integer authrity;//权限值  1 超级管理员 2读写 3只读
	private Integer type;//状态  1 正常 0 停用


	// Property accessors
	@Id
	@GeneratedValue
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "account")
	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name = "password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "authrity")
	public Integer getAuthrity() {
		return this.authrity;
	}

	public void setAuthrity(Integer authrity) {
		this.authrity = authrity;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}